<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PropTypes</title>
    <script src="../build/react.min.js"></script>
    <script src="../build/react-dom.min.js"></script>
    <script src="../build/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/babel">
//    var data = 123;
    var MyTitle = React.createClass({
        getDefaultProps: function () {
            return {
                title: 'PropTypes'
            };
        },
//        propTypes: {
//            title: React.propTypes.string.isRequired,
//        },
        render: function () {
            return <h1>{this.props.title}</h1>;
        }
    });
    ReactDOM.render(
            <MyTitle />,
                    document.getElementById('example')
    );
</script>
</body>
</html>